#include "stdafx.h"
#include "its_vio_xml_lib.h"
#include "afxmt.h"

CMutex s_vio_mutex;

#define  __VIO_XML_DLL_TEST
TS_LONG g_Its_Vio_Xml_Dll_Handle=TS_NULL;

TS_LONG     ITS_XML_Load_Lib(LPTS_CHAR p_Name){
	TS_LONG i=0;
	i=(TS_LONG)LoadLibrary(p_Name);
	TS_INT x=GetLastError();
	return i;
	//return (TS_LONG)LoadLibrary(p_Name);
}
TS_LONG     ITS_XML_Free_Lib(TS_LONG m_Lib){if (m_Lib)FreeLibrary((HMODULE)m_Lib);return 0;}
TS_LONG     ITS_XML_Get_Lib_Func(TS_LONG m_Lib,LPTS_CHAR p_Func_Name){
	if (!m_Lib) return  TS_NULL;
	if (!p_Func_Name) return TS_NULL;
	return (TS_LONG)GetProcAddress((HMODULE)m_Lib,p_Func_Name);
}


TS_LONG     ITS_T_VIO_XML_Free_Lib(){
#ifdef __VIO_XML_DLL_TEST
	if (g_Its_Vio_Xml_Dll_Handle){
		ITS_XML_Free_Lib(g_Its_Vio_Xml_Dll_Handle);
		g_Its_Vio_Xml_Dll_Handle=NULL;
		return 0;
	}
#endif
	return 0;
}
TS_LONG     ITS_T_VIO_XML_Load_Lib(LPTS_CHAR p_Name){
	ITS_T_VIO_XML_Free_Lib();
#ifdef __VIO_XML_DLL_TEST
	g_Its_Vio_Xml_Dll_Handle = ITS_XML_Load_Lib(p_Name);
	if (!g_Its_Vio_Xml_Dll_Handle)  return TS_COMMON_ERROR;
	return (TS_LONG) TS_CONTINUE;
#else
	return TS_CONTINUE;
#endif
}


TS_LONG     ITS_T_VIO_XML_Get_Lib_Func(LPTS_CHAR p_Name){
	return ITS_XML_Get_Lib_Func(g_Its_Vio_Xml_Dll_Handle,p_Name);
}


TS_INT             ITS_T_VIO_XML_LIB_Init(){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_XML_LIB_Init p_Proc=(__ITS_VIO_XML_LIB_Init)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_XML_LIB_Init");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc();
#else
	return ITS_VIO_XML_LIB_Init();
#endif
}


TS_INT             ITS_T_VIO_XML_LIB_End(){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_XML_LIB_End p_Proc=(__ITS_VIO_XML_LIB_End)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_XML_LIB_End");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc();
#else
	return ITS_VIO_XML_LIB_End();
#endif
}

TS_INT             ITS_T_VIO_XML_LIB_Info(LPITS_LIB_INFO p_Data){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_XML_LIB_Info p_Proc=(__ITS_VIO_XML_LIB_Info)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_XML_LIB_Info");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc(p_Data);
#else
	return ITS_VIO_XML_LIB_Info(p_Data);
#endif
}

TS_HANDLE     ITS_T_VIO_XML_Handle_Create(){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_XML_Handle_Create p_Proc=(__ITS_VIO_XML_Handle_Create)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_XML_Handle_Create");
	if (!p_Proc) return (TS_HANDLE)TS_COMMON_ERROR;
	return p_Proc();
#else
	return ITS_VIO_XML_Handle_Create();
#endif
}

TS_INT     ITS_T_VIO_XML_Handle_Delete(TS_HANDLE p_Data){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_XML_Handle_Delete p_Proc=(__ITS_VIO_XML_Handle_Delete)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_XML_Handle_Delete");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc(p_Data);
#else
	return ITS_VIO_XML_Handle_Delete(p_Data);
#endif
}

TS_INT     ITS_T_VIO_XML_Start(TS_HANDLE m_Handle,LPTS_CHAR p_xmlFileName,LPTS_CHAR p_IniPath){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_XML_Start p_Proc=(__ITS_VIO_XML_Start)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_XML_Start");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc(m_Handle,p_xmlFileName,p_IniPath);
#else
	return ITS_VIO_XML_Start(m_Handle,p_xmlFileName,p_IniPath);
#endif
}

TS_INT     ITS_T_VIO_XML_Work(TS_HANDLE m_Handle,LPITS_EVENT_DATA p_Data,TS_INT m_OutType,LPTS_VOID p_Ptr,TS_INT m_PtrLength){
	CSingleLock m_singlelOck(&s_vio_mutex);
	m_singlelOck.Lock();
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_XML_Work p_Proc=(__ITS_VIO_XML_Work)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_XML_Work");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc(m_Handle,p_Data,m_OutType,p_Ptr,m_PtrLength);
#else
	return ITS_VIO_XML_Work(m_Handle,p_Data,m_OutType,p_Ptr,m_PtrLength);
#endif
}

TS_VOID     ITS_T_VIO_XML_End(TS_HANDLE m_Handle){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_XML_End p_Proc=(__ITS_VIO_XML_End)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_XML_End");
	if (!p_Proc) return ;
	p_Proc(m_Handle);
#else
	return ITS_VIO_XML_End(m_Handle);
#endif
}

TS_VOID       ITS_T_VIO_Get_Out_Xml_FileName(LPTS_CHAR p_FilePath, LPTS_CHAR p_FileName)
{
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_Get_Out_Xml_FileName p_Proc=(__ITS_VIO_Get_Out_Xml_FileName)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_Get_Out_Xml_FileName");
	if (!p_Proc) return ;
	p_Proc(p_FilePath,p_FileName);
#else
	return ITS_VIO_Get_Out_Xml_FileName(p_FilePath,p_FileName);
#endif
}


TS_INT             ITS_T_DICT_Create(TS_INT m_Type,LPITS_DICT_INIT_PARA p_Para,LPTS_CHAR p_IniPath){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Create p_Proc=(__ITS_DICT_Create)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Create");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc(m_Type,p_Para,p_IniPath);
#else
	return ITS_DICT_Create(m_Type,p_Para,p_IniPath);
#endif
}
TS_INT                ITS_T_DICT_Delete(TS_HANDLE m_Handle){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Delete p_Proc=(__ITS_DICT_Delete)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Delete");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc(m_Handle);
#else
	return ITS_DICT_Delete(m_Handle);
#endif
}
TS_INT                ITS_T_DICT_DictPos_Get(TS_HANDLE m_Handle,LPTS_CHAR p_Dict_Name){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_DictPos_Get p_Proc=(__ITS_DICT_DictPos_Get)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_DictPos_Get");
	if (!p_Proc) return TS_INVALID_VAL;
	return p_Proc(m_Handle,p_Dict_Name);
#else
	return ITS_DICT_DictPos_Get(m_Handle,p_Dict_Name);
#endif
}
LPITS_DICT_ATOM       ITS_T_DICT_Get_By_Key(TS_HANDLE m_Handle, TS_INT  m_Dict_Pos,TS_INT m_Key,LPITS_DICT_ATOM p_Atom){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_By_Key p_Proc=(__ITS_DICT_Get_By_Key)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_By_Key");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,m_Dict_Pos,m_Key,p_Atom);
#else
	return ITS_DICT_Get_By_Key(m_Handle,m_Dict_Pos,m_Key,p_Atom);
#endif
}
LPITS_DICT_ATOM       ITS_T_DICT_Get_By_Doc(TS_HANDLE m_Handle, TS_INT  m_Dict_Pos,LPTS_CHAR p_Dict_Atom_Name,LPITS_DICT_ATOM p_Atom){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_By_Doc p_Proc=(__ITS_DICT_Get_By_Doc)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_By_Doc");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,m_Dict_Pos,p_Dict_Atom_Name,p_Atom);
#else
	return ITS_DICT_Get_By_Doc(m_Handle,m_Dict_Pos,p_Dict_Atom_Name,p_Atom);
#endif
}
LPITS_DICT_ATOM       ITS_T_DICT_Get_By_KeyStr(TS_HANDLE m_Handle, TS_INT  m_Dict_Pos,LPTS_CHAR p_Dict_Atom_Key_Str,LPITS_DICT_ATOM p_Atom){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_By_KeyStr p_Proc=(__ITS_DICT_Get_By_KeyStr)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_By_KeyStr");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,m_Dict_Pos,p_Dict_Atom_Key_Str,p_Atom);
#else
	return ITS_DICT_Get_By_KeyStr(m_Handle,m_Dict_Pos,p_Dict_Atom_Key_Str,p_Atom);
#endif
}

LPITS_DICT_ATOM       ITS_T_DICT_Get_By_Pos(TS_HANDLE m_Handle,TS_INT m_Dict_Pos,TS_INT m_Atom_Pos,LPITS_DICT_ATOM p_Atom){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_By_Pos p_Proc=(__ITS_DICT_Get_By_Pos)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_By_Pos");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,m_Dict_Pos,m_Atom_Pos,p_Atom);
#else
	return ITS_T_DICT_Get_By_Pos(m_Handle,m_Dict_Pos,m_Atom_Pos,p_Atom);
#endif
}
TS_INT       ITS_T_DICT_Get_Atom_Num(TS_HANDLE m_Handle,TS_INT m_Dict_Pos){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_Atom_Num p_Proc=(__ITS_DICT_Get_Atom_Num)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_Atom_Num");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,m_Dict_Pos);
#else
	return ITS_DICT_Get_Atom_Num(m_Handle,m_Dict_Pos);
#endif
}








LPITS_DICT_ATOM       ITS_T_DICT_Get_By_Key_A(TS_HANDLE m_Handle,LPTS_CHAR p_Dict,TS_INT m_Key,LPITS_DICT_ATOM p_Atom){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_By_Key_A p_Proc=(__ITS_DICT_Get_By_Key_A)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_By_Key_A");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,p_Dict,m_Key,p_Atom);
#else
	return ITS_DICT_Get_By_Key_A(m_Handle,p_Dict,m_Key,p_Atom);
#endif
}
LPITS_DICT_ATOM       ITS_T_DICT_Get_By_Doc_A(TS_HANDLE m_Handle,LPTS_CHAR p_Dict,LPTS_CHAR p_Dict_Atom_Name,LPITS_DICT_ATOM p_Atom){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_By_Doc_A p_Proc=(__ITS_DICT_Get_By_Doc_A)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_By_Doc_A");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,p_Dict,p_Dict_Atom_Name,p_Atom);
#else
	return ITS_DICT_Get_By_Doc_A(m_Handle,p_Dict,p_Dict_Atom_Name,p_Atom);
#endif
}
LPITS_DICT_ATOM       ITS_T_DICT_Get_By_KeyStr_A(TS_HANDLE m_Handle,LPTS_CHAR p_Dict,LPTS_CHAR p_Dict_Atom_Key_Str,LPITS_DICT_ATOM p_Atom){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_By_KeyStr_A p_Proc=(__ITS_DICT_Get_By_KeyStr_A)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_By_KeyStr_A");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,p_Dict,p_Dict_Atom_Key_Str,p_Atom);
#else
	return ITS_DICT_Get_By_KeyStr_A(m_Handle,p_Dict,p_Dict_Atom_Key_Str,p_Atom);
#endif
}
LPITS_DICT_ATOM       ITS_T_DICT_Get_By_Pos_A(TS_HANDLE m_Handle,LPTS_CHAR p_Dict,TS_INT m_Atom_Pos,LPITS_DICT_ATOM p_Atom){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_By_Pos_A p_Proc=(__ITS_DICT_Get_By_Pos_A)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_By_Pos_A");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,p_Dict,m_Atom_Pos,p_Atom);
#else
	return ITS_T_DICT_Get_By_Pos_A(m_Handle,p_Dict,m_Atom_Pos,p_Atom);
#endif
}
TS_INT       ITS_T_DICT_Get_Atom_Num_A(TS_HANDLE m_Handle,LPTS_CHAR p_Dict){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Get_Atom_Num_A p_Proc=(__ITS_DICT_Get_Atom_Num_A)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Get_Atom_Num_A");
	if (!p_Proc) return TS_NULL;
	return p_Proc(m_Handle,p_Dict);
#else
	return ITS_DICT_Get_Atom_Num_A(m_Handle,p_Dict);
#endif
}


TS_INT                ITS_T_DICT_Lib_End(TS_HANDLE m_Handle){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Lib_End p_Proc=(__ITS_DICT_Lib_End)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Lib_End");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc(m_Handle);
#else
	return ITS_DICT_Lib_End(m_Handle);
#endif
}
TS_INT                ITS_T_DICT_Lib_Init(TS_INT m_Type,LPITS_DICT_INIT_PARA p_Para,LPTS_CHAR p_IniPath){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Lib_Init p_Proc=(__ITS_DICT_Lib_Init)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Lib_Init");
	if (!p_Proc) return TS_COMMON_ERROR;
	return p_Proc(m_Type,p_Para,p_IniPath);
#else
	return ITS_DICT_Lib_Init(m_Type,p_Para,p_IniPath);
#endif
}
TS_VOID               ITS_T_DICT_Info(LPITS_LIB_INFO p_Info){
#ifdef __VIO_XML_DLL_TEST
	__ITS_DICT_Info p_Proc=(__ITS_DICT_Info)ITS_T_VIO_XML_Get_Lib_Func("ITS_DICT_Info");
	if (!p_Proc) return ;
	p_Proc(p_Info);
#else
	ITS_DICT_Info(p_Info);
#endif
}



TS_INT        ITS_T_VIO_DATA_Field_Pos_Get(LPITS_EVENT_DATA p_Data,LPTS_CHAR p_Key){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_DATA_Field_Pos_Get p_Proc=(__ITS_VIO_DATA_Field_Pos_Get)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_DATA_Field_Pos_Get");
	if (!p_Proc) return TS_INVALID_VAL;
	return  p_Proc(p_Data,p_Key);
#else
	return  ITS_VIO_DATA_Field_Pos_Get(p_Data,p_Key);
#endif
}
LPTS_CHAR     ITS_T_VIO_DATA_Get_Format_Str(TS_INT    m_Pos,LPTS_CHAR p_Formatstr,LPTS_CHAR p_CheckValue){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_DATA_Get_Format_Str p_Proc=(__ITS_VIO_DATA_Get_Format_Str)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_DATA_Get_Format_Str");
	if (!p_Proc) return TS_NULL;
	return  p_Proc(m_Pos,p_Formatstr,p_CheckValue);
#else
	return  ITS_VIO_DATA_Get_Format_Str(m_Pos,p_Formatstr,p_CheckValue);
#endif
}
LPTS_CHAR     ITS_T_VIO_DATA_Get_Format_Str_A(LPTS_CHAR p_Key,LPTS_CHAR p_Format,LPTS_CHAR p_CheckValue){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_DATA_Get_Format_Str_A p_Proc=(__ITS_VIO_DATA_Get_Format_Str_A)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_DATA_Get_Format_Str_A");
	if (!p_Proc) return TS_NULL;
	return  p_Proc(p_Key,p_Format,p_CheckValue);
#else
	return  ITS_VIO_DATA_Get_Format_Str_A(p_Key,p_Format,p_CheckValue);
#endif
}
LPTS_CHAR     ITS_T_VIO_DATA_Get_Str(LPITS_EVENT_DATA p_Data,LPTS_CHAR p_Format, TS_INT m_Pos,LPTS_CHAR p_Tgt){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_DATA_Get_Str p_Proc=(__ITS_VIO_DATA_Get_Str)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_DATA_Get_Str");
	if (!p_Proc) return TS_NULL;
	return  p_Proc(p_Data,p_Format,m_Pos,p_Tgt);
#else
	return  ITS_VIO_DATA_Get_Str(p_Data,p_Format,m_Pos,p_Tgt);
#endif
}
LPTS_CHAR     ITS_T_VIO_DATA_Get_Str_A(LPITS_EVENT_DATA p_Data,LPTS_CHAR p_Format, LPTS_CHAR p_Key,LPTS_CHAR p_Tgt){
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_DATA_Get_Str_A p_Proc=(__ITS_VIO_DATA_Get_Str_A)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_DATA_Get_Str_A");
	if (!p_Proc) return TS_NULL;
	return  p_Proc(p_Data,p_Format,p_Key,p_Tgt);
#else
	return  ITS_VIO_DATA_Get_Str_A(p_Data,p_Format,p_Key,p_Tgt);
#endif
}

LPTS_CHAR   ITS_T_VIO_Get_Version(LPTS_VOID p_tmp)
{
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_Get_Version p_Proc=(__ITS_VIO_Get_Version)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_Get_Version");
	if (!p_Proc) return TS_NULL;
	return  p_Proc(p_tmp);
#else
	return  ITS_VIO_Get_Version(p_tmp);
#endif
	//return ITS_VIO_Get_Version(p_tmp);
}

LPTS_CHAR   ITS_T_VIO_Data_OutPut_Name(TS_HANDLE m_Handle,LPITS_EVENT_DATA p_Data,TS_INT FileType,LPTS_CHAR m_FileName)
{
#ifdef __VIO_XML_DLL_TEST
	__ITS_VIO_Data_OutPut_Name p_Proc=(__ITS_VIO_Data_OutPut_Name)ITS_T_VIO_XML_Get_Lib_Func("ITS_VIO_Data_OutPut_Name");
	if (!p_Proc) return TS_NULL;
	return  p_Proc(m_Handle,p_Data,FileType,m_FileName);
#else
	return  ITS_VIO_Data_OutPut_Name(m_Handle,p_Data,FileType,m_FileName);
#endif

}

TS_INT        ITS_T_XML_Get_1039_Video_BeginTime(TS_HANDLE m_Handle)
{
#ifdef __VIO_XML_DLL_TEST
	__ITS_XML_Get_1039_Video_BeginTime p_Proc=(__ITS_XML_Get_1039_Video_BeginTime)ITS_T_VIO_XML_Get_Lib_Func("ITS_XML_Get_1039_Video_BeginTime");
	if (!p_Proc) return TS_NULL;
	return  p_Proc(m_Handle);
#else
	return  ITS_XML_Get_1039_Video_BeginTime(m_Handle);
#endif
}
TS_VOID       ITS_T_XML_Set_1039_Video_BeginTime(TS_HANDLE m_Handle,TS_INT m_1039_VideoTime)
{
#ifdef __VIO_XML_DLL_TEST
	__ITS_XML_Set_1039_Video_BeginTime p_Proc=(__ITS_XML_Set_1039_Video_BeginTime)ITS_T_VIO_XML_Get_Lib_Func("ITS_XML_Set_1039_Video_BeginTime");
	if (!p_Proc) return ;
	return  p_Proc(m_Handle,m_1039_VideoTime);
#else
	return  ITS_XML_Set_1039_Video_BeginTime(m_Handle,m_1039_VideoTime);
#endif
}

TS_INT        ITS_T_XML_Get_1039_Video_EndTime(TS_HANDLE m_Handle)
{
#ifdef __VIO_XML_DLL_TEST
	__ITS_XML_Get_1039_Video_EndTime p_Proc=(__ITS_XML_Get_1039_Video_EndTime)ITS_T_VIO_XML_Get_Lib_Func("ITS_XML_Get_1039_Video_EndTime");
	if (!p_Proc) return TS_NULL;
	return  p_Proc(m_Handle);
#else
	return  ITS_XML_Get_1039_Video_BeginTime(m_Handle);
#endif
}
TS_VOID       ITS_T_XML_Set_1039_Video_EndTime(TS_HANDLE m_Handle,TS_INT m_1039_VideoTime)
{
#ifdef __VIO_XML_DLL_TEST
	__ITS_XML_Set_1039_Video_EndTime p_Proc=(__ITS_XML_Set_1039_Video_EndTime)ITS_T_VIO_XML_Get_Lib_Func("ITS_XML_Set_1039_Video_EndTime");
	if (!p_Proc) return ;
	return  p_Proc(m_Handle,m_1039_VideoTime);
#else
	return  ITS_XML_Set_1039_Video_EndTime(m_Handle,m_1039_VideoTime);
#endif
}




